Remove unnecessary strdup in garmin_gpi.
authorrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 30 Aug 2013 18:19:26 +0000 (18:19 +0000)
committerrobertlipe <robertlipe@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Fri, 30 Aug 2013 18:19:26 +0000 (18:19 +0000)
git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4580 f51c46e8-681c-474f-0cfe-069cfd0219fb

gpsbabel/garmin_gpi.cc

index 3bdf4f2da5b75bcb09c0d2a1b2671a2922acf553..12dfde10a8b6d4be2ecf9c150c71d7d5ca85f582 100644 (file)
@@ -647,7 +647,7 @@ read_tag(const char* caller, const int tag, waypoint* wpt)
       GMSD_SET(email, str);
     }
     if ((mask & 0x10) && (str = gpi_read_string("Link"))) {
-      waypt_add_url(wpt, xstrdup(str), str);
+      waypt_add_url(wpt, str, str);
     }
     break;